<%@ Page Title="Edit or Create Store" Language="C#" MasterPageFile="~/Views/Shared/Employee.Master" Inherits="System.Web.Mvc.ViewPage<DomainModel.Entities.Store>" %>

<asp:Content ContentPlaceHolderID="TitleContent" runat="server">
	Edit or Create Store
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">

<% using (Html.BeginForm("Edit", "StoresManagement"))
{ %>

<h2>Edit or Create a Store</h2>

<%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

<fieldset class="storemanager">
    
<legend class="storemanager">Store</legend>

    <%= Html.Hidden("StoreID")%>
  
        <p>
            <label class="storemanager" for="Name">Name:</label>
            <br/><%= Html.TextBox("Name", null, new { @class = "storemanagertextbox", @style = "width: 100px;" })%>
            <%=Html.ValidationMessage("Name", "*")%>
        </p>       
    
        <p>
            <input class="storemanager" type="submit" value="Save"/>
            | <%= Html.ActionLink("Cancel", "Index")%>
        </p>

</fieldset>

<% } %>

</asp:Content>
